// 按需导入组件
import {
  Button,
  Menu,
  Submenu,
  MenuItem,
  MenuItemGroup
} from 'element-ui'

import CollapseTransition from 'element-ui/lib/transitions/collapse-transition'

// 按需导入自定义组件主题
import '@/style/element-theme/button.css'
import '@/style/element-theme/menu.css'
import 'element-ui/lib/theme-chalk/base.css'

export default {
  install (Vue) {
    Vue.use(Button)
    Vue.use(Menu)
    Vue.use(Submenu)
    Vue.use(MenuItem)
    Vue.use(MenuItemGroup)
    Vue.component(CollapseTransition.name, CollapseTransition)
  }
}
